package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.game.skill.model.RoleSkill;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;

/**学习技能事件*/
@Getter
public class StudySkillEvent extends BasePlayerEvent {
    private Role role;
    /**技能ID*/
    private int skillId;
    /**技能等级*/
    private short skillLevel;

    private RoleSkill roleSkill;
    public StudySkillEvent(EventType evtType, Role role, int skillId, short skillLevel) {
        super(evtType, role);
        this.role = role;
        this.skillId = skillId;
        this.skillLevel = skillLevel;
    }
    public StudySkillEvent(EventType evtType, Role role, int skillId, short skillLevel,RoleSkill roleSkill) {
        super(evtType, role);
        this.role = role;
        this.skillId = skillId;
        this.skillLevel = skillLevel;
        this.roleSkill = roleSkill;
    }
}
